package com.javaweb.service;

import com.javaweb.model.Article;
import com.javaweb.service.dto.ArticleConditionDto;
import com.javaweb.service.dto.ArticleUpdateDto;
import com.javaweb.service.dto.PageResult;

import java.util.List;

public interface ArticleService {

    public int publishArticle(String userId, String articleId) ;

    public PageResult queryByArticleCondition(ArticleConditionDto articleCondition, Integer pageNum, Integer pageSize);

    public Article queryById(Integer articleId);

    public Article insertArticle(Article article);

    public int publishArticlesByBatch(String[] articleIds, String userId);

    public int removeArticle(String articleId, String userId);

    public int updateArticle(ArticleUpdateDto articleUpdateDto);



}
